#include "selectserver.hpp"
#include <memory>

int main(int argv, char* argc[])
{
    if (argv != 2)
    {
        cout << "./selectserver port" << endl;    
        exit(-1);    
    }

    uint16_t port = atoi(argc[1]); // 端口号
    unique_ptr<SelectServer::selectserver> s = make_unique<SelectServer::selectserver>(port);
    s->InitServer();
    s->Run();
    return 0;
}

